﻿using System.ComponentModel;
using Unity;
using VNext.Core.Packs;

namespace VNext.Log4Net
{
    /// <summary>
    /// Log4Net模块
    /// </summary>
    [Description("Log4Net日志模块")]
    public class Log4NetPack : Pack
    {
        /// <summary>
        /// 将模块服务添加到依赖注入服务容器中
        /// </summary>
        /// <param name="services">依赖注入服务容器</param>
        /// <returns></returns>
        public override IUnityContainer AddServices(IUnityContainer services)
        {
            services.RegisterSingleton<Logger>();
            return services;
        }
    }
}
